package com.aiyun.jpa.repository;

import com.aiyun.jpa.domain.Customer;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface CustomerRepository extends JpaRepository<Customer, Long>, JpaSpecificationExecutor<Customer> {

	Page<Customer> findByCustomerNameStartingWith(String customerName, Pageable pageable);
}
